package com.ssm.service;

import com.ssm.pojo.Build;
import com.ssm.vo.BuildVo;

import java.util.List;

public interface BuildService {
    List<Build> findAllBuildNumber();
    //添加楼栋号
    int addBuild(Build build);
    //修改楼栋号
    int updateBuildNumber(Build build);
    //通过buildId删除楼栋号
    int deleteBuildById(int buildId);
    //批量删除
    int deletebuilds(int[] res);
    //通过楼栋号查询
    List<Build> selectByBuildNumber(Integer buildNumber);
    //通过id查找
    List<Build> selectByBuildId(Integer buildId);
    //通过buildId和buildNumber查找
    List<Build> selectByBuildIdAndBuildNumber(Integer buildId, Integer buildNumber);
    //查询所有
    List<Build> queryAll();
}
